package com.itheima.health.dao;

import com.itheima.health.pojo.Menu;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author ：Ting
 * @date ：Created in 2020/1/2
 * @description ：
 * @version: 1.0
 */

public interface SelectMenu {

    /**
     * 查询菜单
     * @return
     */
    List<Menu> selectById(@Param("id") Integer id);

    int selectByUserName(@Param("username") String username);
    //二级菜单
   List<Menu> selectByLevel(@Param("id") Integer id);

    List<Menu> selectLevl();
    //一级对应的子菜单
    List<Menu> selectByMenuid(@Param("parentMenuId") Integer parentMenuId);

    Menu selectPriority(@Param("username") String username);
}
